﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace csharpcore7_ch14_ConcurrencyAndAsynchrony
{
    class chapt14_3_6TaskDelayMethod
    {
        static void _Main()
        {
            Task.Delay(5000).GetAwaiter().OnCompleted(() => Console.WriteLine(42));
            Task.Delay(5000).ContinueWith(ant => Console.WriteLine(43));
            Console.Read();
        }
    }
}
